package problem.year2022.Month12;

import java.util.Arrays;

public class D1213 {
    public static void main(String[] args) {
        boolean checkIfPangram = checkIfPangram("thequickbrownfoxjumpsoverthelazydog");
        System.out.println(checkIfPangram);
    }

    public static boolean checkIfPangram(String sentence) {
        int[] existArray = new int[26];
        char[] chars = sentence.toCharArray();
        for (char it : chars) {
            int index = it - 'a';
            existArray[index] += 1;
        }
        for (int it : existArray) {
            if (it == 0) {
                return false;
            }
        }
        return true;
    }
}